


#include <Ogre.h>
#include <OIS.h>
#include "OgreInterface.h"

using namespace Ogre;



bool OgreInterface::initializeInput( ) {

    size_t hWnd = 0;
    m_win->getCustomAttribute("WINDOW", &hWnd);
    m_InputManager = OIS::InputManager::createInputSystem(hWnd);

    m_Mouse = static_cast<OIS::Mouse*>(m_InputManager->createInputObject(OIS::OISMouse, false));
    m_Keyboard = static_cast<OIS::Keyboard*>(m_InputManager->createInputObject(OIS::OISKeyboard, false));

}

